package org.zhou.springcloud.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.zhou.springCloud.pojo.Dept;
import org.zhou.springcloud.dao.DeptDaoMapper;

import java.util.List;
@Service
public class DeptServiceImpl implements DeptService{
    @Autowired
    private DeptDaoMapper deptDaoMapper;
    @Override
    public boolean addDept(Dept dept) {
        return deptDaoMapper.addDept(dept);
    }

    @Override
    public Dept queryDeptById(Long id) {
        return deptDaoMapper.queryDeptById(id);
    }

    @Override
    public List<Dept> queryAll() {
        return deptDaoMapper.queryAll();
    }
}
